
# -- gerneral --
unbind-key C-b
set-option -g prefix M-Space
bind-key M-Space send-prefix
set -g base-index 1
setw -g pane-base-index 1

set-option -g mouse on
set-option -g default-terminal "screen-256color"
set-option -sg escape-time 10
set-option -g focus-events on

# -- display --
setw -g automatic-rename on
set -g renumber-windows on
set-option -sa terminal-features ",XXX:RGB"


# -- navigation --
bind M-v split-window -v
bind M-h split-window -h

bind -r h select-pane -L
bind -r j select-pane -D
bind -r k select-pane -U
bind -r l select-pane -R

bind -r Left select-pane -L
bind -r Down select-pane -D
bind -r Up select-pane -U
bind -r Right select-pane -R

bind -r H resize-pane -L 2
bind -r J resize-pane -D 2
bind -r K resize-pane -U 2
bind -r L resize-pane -R 2

# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'

run '~/.config/tmux/plugins/tpm/tpm'
